Not able to create ionic project after Visual studio installation - ionic2

ionic start myApp tabs
Creating Ionic app in folder C:\Users\Swanandi\myAquire based on tabs project
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s
Error with start Error: ENOENT: no such file or directory, open 'C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jre1.8.0_101;C:\Program Files\Java\jdk1.8.0_101\bin;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32\config\systemprofile.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Users\Swanandi\AppData\Roaming\npm;C:\Program Files\nodejs\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jre1.8.0_101;C:\Program Files\Java\jdk1.8.0_101\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\Swanandi\AppData\Local\Microsoft\WindowsApps;C:\Users\Swanandi\AppData\Roaming\npm;C:\Users\Swanandi\android-sdks\tools\ionic-starter-1476779357812.zip'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.writeFileSync (fs.js:1333:33)
at Request._callback (C:\Users\Swanandi\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\utils.js:121:10)
at Request.self.callback (C:\Users\Swanandi\AppData\Roaming\npm\node_modules\ionic\node_modules\request\request.js:373:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (C:\Users\Swanandi\AppData\Roaming\npm\node_modules\ionic\node_modules\request\request.js:1318:14)
at emitOne (events.js:101:20)
at Request.emit (events.js:188:7)
Error Initializing app: Error: ENOENT: no such file or directory, open 'C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jre1.8.0_101;C:\Program Files\Java\jdk1.8.0_101\bin;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32\config\systemprofile.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Users\Swanandi\AppData\Roaming\npm;C:\Program Files\nodejs\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jre1.8.0_101;C:\Program Files\Java\jdk1.8.0_101\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\Swanandi\AppData\Local\Microsoft\WindowsApps;C:\Users\Swanandi\AppData\Roaming\npm;C:\Users\Swanandi\android-sdks\tools\ionic-starter-1476779357812.zip'
Error: ENOENT: no such file or directory, open 'C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jre1.8.0_101;C:\Program Files\Java\jdk1.8.0_101\bin;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32\config\systemprofile.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Users\Swanandi\AppData\Roaming\npm;C:\Program Files\nodejs\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jre1.8.0_101;C:\Program Files\Java\jdk1.8.0_101\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\Swanandi\AppData\Local\Microsoft\WindowsApps;C:\Users\Swanandi\AppData\Roaming\npm;C:\Users\Swanandi\android-sdks\tools\ionic-starter-1476779357812.zip'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.writeFileSync (fs.js:1333:33)
at Request._callback (C:\Users\Swanandi\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\utils.js:121:10)
at Request.self.callback (C:\Users\Swanandi\AppData\Roaming\npm\node_modules\ionic\node_modules\request\request.js:373:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (C:\Users\Swanandi\AppData\Roaming\npm\node_modules\ionic\node_modules\request\request.js:1318:14)
at emitOne (events.js:101:20)
at Request.emit (events.js:188:7)
Caught exception:
Error: ENOENT: no such file or directory, open 'C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jre1.8.0_101;C:\Program Files\Java\jdk1.8.0_101\bin;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32\config\systemprofile.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Users\Swanandi\AppData\Roaming\npm;C:\Program Files\nodejs\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jre1.8.0_101;C:\Program Files\Java\jdk1.8.0_101\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\Swanandi\AppData\Local\Microsoft\WindowsApps;C:\Users\Swanandi\AppData\Roaming\npm;C:\Users\Swanandi\android-sdks\tools\ionic-starter-1476779357812.zip'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.writeFileSync (fs.js:1333:33)
at Request._callback (C:\Users\Swanandi\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\utils.js:121:10)
at Request.self.callback (C:\Users\Swanandi\AppData\Roaming\npm\node_modules\ionic\node_modules\request\request.js:373:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (C:\Users\Swanandi\AppData\Roaming\npm\node_modules\ionic\node_modules\request\request.js:1318:14)
at emitOne (events.js:101:20)
at Request.emit (events.js:188:7)

Please add the code to your question that demonstrates what you try to accomplish, what you tried and where you failed

Related

using cmath special functions extending Python with C++

I am trying to build a Python package in C++, and when I build, I get no errors; however, when I use pip install, I get the following result:
----- Installing 'D:\GitHub\dir\dir\ --user' -----
Processing d:\github\dir\dir
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: package_name
Building wheel for package_name (pyproject.toml): started
Building wheel for package_name (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Building wheel for package_name (pyproject.toml) did not run successfully.
exit code: 1
[14 lines of output]
Failed to build package_name
running bdist_wheel
running build
running build_ext
building 'package_name' extension
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\etcto\AppData\Local\Programs\Python\Python310\include -IC:\Users\etcto\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpmodule.cpp /Fobuild\temp.win-amd64-cpython-310\Release\module.obj
module.cpp
module.cpp(28): error C2039: 'comp_ellint_1f': is not a member of 'std'
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include\cmath(710): note: see declaration of 'std'
module.cpp(28): error C3861: 'comp_ellint_1f': identifier not found
module.cpp(28): error C2039: 'comp_ellint_1f': is not a member of 'std'
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include\cmath(710): note: see declaration of 'std'
module.cpp(28): error C3861: 'comp_ellint_1f': identifier not found
module.cpp(61): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for package_name
ERROR: Could not build wheels for package_name, which is required to install pyproject.toml-based projects
----- Failed to install 'D:\GitHub\dir\dir\ --user' -----
I have a feeling it's trying to use C++ 14 (which didn't include comp_ellint_1f) because I see the number in the directories listed, but in my properties page (for both Release and Debug), I have the "C++ Language Standard" set to "ISO C++ 20 Standard (/std:c++20)".
When I remove that function from the project, pip installs the package just fine, and I can import it into Python without issue. I am not sure how to tell it to use C++ 20 for the pip install portion.
MRE:
#include <Python.h>
#include <Windows.h>
#include <cmath>
PyObject* k_func(PyObject* /* unused module reference */, PyObject* args) {
double k, integral;
PyArg_ParseTuple(args, "d", &k);
double integral = std::comp_ellint_1(k);
return PyFloat_FromDouble(integral);
}
static PyMethodDef package_name_methods[] = {
// The first property is the name exposed to Python, k
// The second is the C++ function with the implementation
// METH_O means it takes a single PyObject argument
{ "ellipticK", (PyCFunction)k_func, METH_VARARGS, "Calculate elliptic integral" },
// Terminate the array with an object containing nulls.
{ nullptr, nullptr, 0, nullptr }
};
static PyModuleDef package_name_module = {
PyModuleDef_HEAD_INIT,
"package_name",
"Module Description",
0,
package_name_methods
};
PyMODINIT_FUNC PyInit_package_name() {
return PyModule_Create(&package_name_module);
}
pyproject.toml is
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
setup.py is
from setuptools import setup, Extension
sfc_module = Extension('package_name', sources = ['module.cpp'])
setup(
name='package_name',
version='0.0',
description='Description',
ext_modules=[sfc_module]
)
Thanks for the compiler flag suggestion; the following worked:
from setuptools import setup, Extension
sfc_module = Extension('package_name', sources = ['module.cpp'],
extra_compile_args=["/std:c++20"],
)
setup(
name='package_name',
version='0.0',
scripts=[],
ext_modules=[sfc_module]
)

wrong version of expo-cli after upgrade

for many time i get the following info message after start expo projects, and it seems its not possible to upgrade expo-cli:
There is a new version of expo-cli available (4.2.1). You are currently using expo-cli 3.28.0 Install expo-cli globally using the package manager of your choice; for example: npm install -g expo-cli to get the latest version
This seems easier as it looks. After installing expo-cli globally without errors
+ expo-cli#4.2.1
OK, now im typing expo -V to check the new Version but wait: its 3.28.0
My project package.json dont have expo-cli in. Is there a way to locate the used expo version?
edit:
i found 1 PATH file till now.
(C:\Users\myuser.expo) it contents:
C:\Users\SYSTEM~1\AppData\Local\Temp\yarn--1615049876273-0.687029522126771;
C:\Users\myuser\WfManager\fmapp\node_modules\.bin;
C:\Users\myuser\AppData\Local\Yarn\Data\link\node_modules\.bin;
C:\Program Files\libexec\lib\node_modules\npm\bin\node-gyp-bin;
C:\Program Files\lib\node_modules\npm\bin\node-gyp-bin;
C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;
C:\Program Files (x86)\Lenovo\FusionEngine;
C:\Windows\system32;
C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;
C:\Program Files (x86)\Common Files\Apple\Apple Application Support;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem;
C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
C:\WINDOWS\System32\OpenSSH\;
C:\xampp\php;
C:\Program Files\Git\cmd;
C:\Program Files\PuTTY\;
C:\Program Files\Symfony;
C:\Program Files (x86)\Yarn\bin\;
C:\Program Files\nodejs\;
C:\composer;
C:\Users\myuser\AppData\Local\Microsoft\WindowsApps;
C:\Users\myuser\AppData\Local\Programs\Microsoft VS Code\bin;
C:\Users\myuser\AppData\Roaming\Composer\vendor\bin;
C:\Users\myuser\AppData\Local\Yarn\bin;
C:\Users\myuser\AppData\Local\GitHubDesktop\bin;
C:\Users\myuser\AppData\Roaming\npm
after writing this down and check the entries i found one entry which
links to an old version:
C:\Users\myuser\AppData\Local\Yarn\Data\link\node_modules\.bin; //old version
C:\Users\myuser\AppData\Roaming\npm //new version`
i want to update expo-cli with xarn global now and we will see what happens.
You can check path to binary with command -v expo.
In this case you most likely installed expo-cli globally both with npm and yarn, version 3.28.0 is just earlier in your PATH. It's also possible that you have two node versions (and 2 npm versions) installed, but it's less likely.

Jhipster failure build war file

I use this mvn -Pprod and I get errors like this:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (webpack build prod) on project jhi: Failed to run task: 'yarn run webpack:prod' failed. org.apache.commons.exec.ExecuteE
xception: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Arguments:
E:\vaqtinchalik\Vaqf\jhiProject\node\node.exe E:\vaqtinchalik\Vaqf\jhiProject\node\yarn\dist\bin\yarn.js install --force
PATH:
E:\vaqtinchalik\Vaqf\jhiProject\node;E:\vaqtinchalik\Vaqf\jhiProject\node\yarn\dist\bin;E:\vaqtinchalik\Vaqf\jhiProject\node_modules.bin;C:\Program Files (x86)\Google\Chrome\Application;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Java\jdk1.8.0_66\bin;E:\maven\apache-maven-3.5.4\bin;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\nodejs\;C:\Program Files\PuTTY\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\WinMerge;C:\Program Files\Git\cmd;C:\Users\JavaProgUZ\AppData\Local\Microsoft\WindowsApps;C:\Users\JavaProgUZ\AppData\Local\Yarn\bin;C:\Users\JavaProgUZ\AppData\Roaming\npm;
Yarn version:
1.3.2
Node version:
8.9.4
Trace:
Error: EPERM: operation not permitted, unlink 'E:\vaqtinchalik\Vaqf\jhiProject\node_modules\node-sass\vendor\win32-x64-57\binding.node'

Execute package failed in Sitecore Azure deployment

I have started the deployment of Editing farm and after some time got this error. Before that Databases are created in Azure.
Execute package failed System.ApplicationException: advaiyawebsiteDevScusCe01Role01SSc5e3Staging [S]
Execute package failed ---> System.ApplicationException: Execute package is failed ---> System.InvalidOperationException:
Build Package failed: Searching for imported module Caching at
C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.5\bin\plugins\Caching\Caching.csplugin...
Copying 'C:\InetPub\Sitecoredemo\Data\AzurePackages\(7) Azure\Sitecore.Azure.CacheWorkerRole'
to C:\Windows\TEMP\odbndccq.v4c\roles\SitecoreCacheWorkerRole\approot... Copying
'C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.5\bin\runtimes\base\x64'
to C:\Windows\TEMP\odbndccq.v4c\roles\SitecoreCacheWorkerRole\base\x64... Copying
'C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.5\bin\runtimes\base\x86'
to C:\Windows\TEMP\odbndccq.v4c\roles\SitecoreCacheWorkerRole\base\x86... Copying
'C:\InetPub\Sitecoredemo\Data\AzurePackages\(7) Azure\SitecoreWebSite' to
C:\Windows\TEMP\odbndccq.v4c\roles\SitecoreWebRole\approot... Copying
'C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.5\bin\runtimes\base\x64'
to C:\Windows\TEMP\odbndccq.v4c\roles\SitecoreWebRole\base\x64... Copying
'C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.5\bin\runtimes\base\x86'
to C:\Windows\TEMP\odbndccq.v4c\roles\SitecoreWebRole\base\x86... Copying
'C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.5\bin\plugins\Caching'
to C:\Windows\TEMP\odbndccq.v4c\roles\SitecoreCacheWorkerRole\plugins\Caching...
UCPack_Command_Line: Error : CloudServices41 : The entrypoint Sitecore.Azure.CacheWorkerRole.dll is not a valid assembly.
Please provide a relative path to the binary that implements the entrypoint.
at Sitecore.Diagnostics.Assert.IsFalse(Boolean condition, String message)
at Sitecore.Azure.Pipelines.CreateAzurePackage.Azure.ExecutePackage.Action(RolePipelineArgsBase arguments)
at Sitecore.Azure.Pipelines.BasePipeline.RolePipelineProcessor.Process(RolePipelineArgsBase args)
--- End of inner exception stack trace --- --- End of inner exception stack trace ---
It looks like you have incorrect version of Microsoft Azure SDK installed.
Sitecore Azure 8.0 rev. 150522 supports only version 2.5.1
Sitecore Azure 8.0 rev. 150522 Hotfix 68545-1 supports only version 2.7.1
Sitecore Azure 8.0 rev. 161110 supports only version 2.9.1
For more details, please check the following article: https://kb.sitecore.net/articles/026831

How to deal with unit-tests in Zend Framework 2?

I have a Zend-Framework 2 Project and i have problems to organize my unit-tests. My unit-test are located in one "test"-folder for each module. If I run the test from the command line with phpunit in the test folder of a module, the test will run successfully.
Example:
c:\project\module\AccessControl\test>phpunit
PHPUnit 3.7.14 by Sebastian Bergmann.
Configuration read from c:\project\module\AccessControl\test\phpunit.xml
........Time: 0 seconds, Memory: 8.25Mb
OK (8 tests, 10 assertions)
Problem: Here only one module will be testet. But I want to run a single testsuite from the folder c:\project\ to test the hole project.
There I have put a bootstrap.php and a phpunit.xml.
From the command line I run it with:
C:\project\tests>phpunit --debug --configuration phpunit.xml
PHPUnit 3.7.14 by Sebastian Bergmann.
Configuration read from C:\project\tests\phpunit.xml
Starting test 'AccessControlTest\Model\AuthenticationTest::testInitDefault'.
PHP Fatal error: Class 'AccessControlTest\Bootstrap' not found in C:\project\module\AccessControl\test\AccessControlTest\Model\AuthenticationTest.php on line 22
PHP Stack trace:
PHP 1. {main}() C:\Program Files (x86)\PHP\phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() C:\Program Files (x86)\PHP\phpunit:46
PHP 3. PHPUnit_TextUI_Command->run() C:\Program Files (x86)\PHP\PEAR\PHPUnit\TextUI\Command.php:129
PHP 4. PHPUnit_TextUI_TestRunner->doRun() C:\Program Files (x86)\PHP\PEAR\PHPUnit\TextUI\Command.php:176
PHP 5. PHPUnit_Framework_TestSuite->run() C:\Program Files (x86)\PHP\PEAR\PHPUnit\TextUI\TestRunner.php:346
PHP 6. PHPUnit_Framework_TestSuite->run() C:\Program Files (x86)\PHP\PEAR\PHPUnit\Framework\TestSuite.php:705
PHP 7. PHPUnit_Framework_TestSuite->runTest() C:\Program Files (x86)\PHP\PEAR\PHPUnit\Framework\TestSuite.php:745
PHP 8. PHPUnit_Framework_TestCase->run() C:\Program Files (x86)\PHP\PEAR\PHPUnit\Framework\TestSuite.php:775
PHP 9. PHPUnit_Framework_TestResult->run() C:\Program Files (x86)\PHP\PEAR\PHPUnit\Framework\TestCase.php:769
PHP 10. PHPUnit_Framework_TestCase->runBare() C:\Program Files (x86)\PHP\PEAR\PHPUnit\Framework\TestResult.php:648
PHP 11. AccessControlTest\Model\AuthenticationTest->setUp() C:\Program Files (x86)\PHP\PEAR\PHPUnit\Framework\TestCase.php:821
The file phpunit.xml looks like this:
<phpunit bootstrap="./Bootstrap.php" colors="true" verbose="true">
<testsuite name="SgtrCatalogTestsuite">
<directory>../module/AccessControl</directory>
</testsuite>
</phpunit>
It looks like some modulepaths are not correct. Can somebody help and tell me how to setup this?
EDIT
Ty for your replys!!!
In the meantime i found this:
How to consolidate ZF2 unit/application module tests into a single call?
It seems not possible to run all module-tests from rootlevel. I try now to use this and let u know if it works: https://github.com/prolic/HumusPHPUnitModule
Try adding this section in your composer.json
"autoload": {
"psr-0": {
"AccessControlTest\\": "tests/",
"AccessControl\\": "src/module/AccessControl/src/"
}
}
And then run
$ php composer.phar dump-autoload