Comments (5)
Hey,
Thanks for the report.
Would the checking of the file's executable flag solve the problem? What do you think?
I'm not using linux and my VM is on the shelf.
Would you check it a python file's flags for me please? (ls --all
)
from vscode-catch2-test-adapter.
I release something which hopefully fixes this. (version2.3.16)
Thanks again for the issue
from vscode-catch2-test-adapter.
@matepek Thank you for the quick fix! It looks like right now test discovery is pretty fast.
I was thinking about the execution timeout. However, force stopping a process execution can be harmful. And the solution with the ignore list might work better.
Also, as a notice, this issue probably was caused because the executable flag is set for files. In Linux files not marked as executable cannot be executed. For example, I can create a python script
$ cat hello_world.py
#!/usr/bin/env python
print "Hello, world!"
Try to execute it by default
$ ./hello_world.py
zsh: permission denied: ./hello_world.py
But when I mark it executable
$ chmod u+x hello_world.py
$ ./hello_world.py
Hello, world!
It executes just fine.
And in the gtest folder there are a lot of executable
..cpp/build$ find ./ -executable -type f -name "*test*"
./training_test
./lib/gtest/src/googletest/googletest/scripts/gtest-config.in
./lib/gtest/src/googletest/googletest/scripts/fuse_gtest_files.py
./lib/gtest/src/googletest/googletest/scripts/upload_gtest.py
./lib/gtest/src/googletest/googletest/scripts/gen_gtest_pred_impl.py
./lib/gtest/src/googletest/googletest/test/googletest-output-test.py
./lib/gtest/src/googletest/googletest/test/gtest_testbridge_test.py
./lib/gtest/src/googletest/googletest/test/gtest_test_utils.py
./lib/gtest/src/googletest/googletest/test/gtest_xml_test_utils.py
./lib/gtest/src/googletest/googletest/test/googletest-throw-on-failure-test.py
./lib/gtest/src/googletest/googletest/test/googletest-catch-exceptions-test.py
./lib/gtest/src/googletest/googletest/test/gtest_help_test.py
./lib/gtest/src/googletest/googletest/test/googletest-color-test.py
./lib/gtest/src/googletest/googletest/test/googletest-env-var-test.py
./lib/gtest/src/googletest/googletest/test/googletest-break-on-failure-unittest.py
./lib/gtest/src/googletest/googletest/test/gtest_xml_output_unittest.py
./lib/gtest/src/googletest/googletest/test/googletest-shuffle-test.py
./lib/gtest/src/googletest/googletest/test/googletest-filter-unittest.py
./lib/gtest/src/googletest/googletest/test/googletest-list-tests-unittest.py
./lib/gtest/src/googletest/googletest/test/gtest_xml_outfiles_test.py
./lib/gtest/src/googletest/googletest/test/googletest-uninitialized-test.py
./lib/gtest/src/googletest/googlemock/scripts/generator/cpp/gmock_class_test.py
./lib/gtest/src/googletest/googlemock/test/gmock_test_utils.py
./lib/gtest/src/googletest/googlemock/test/gmock_output_test.py
./lib/gtest/src/googletest/googlemock/test/gmock_leak_test.py
./lib/gtest/src/googletest-build/CMakeFiles/feature_tests.bin
./CMakeFiles/feature_tests.bin
from vscode-catch2-test-adapter.
Good to hear. :)
I was thinking about the execution timeout.
Since this release it has filtering by extension and executable bit, and has 5 sec timeout too.
from vscode-catch2-test-adapter.
I will enable .sh, .py file-s again. The execution timeout is 30 seconds now.
Let me know if you experience any problem with it.
from vscode-catch2-test-adapter.
Related Issues (20)
- Group by regex example - dot separated names
- googletest executables are not showing up in vscode HOT 11
- No way to stop continuous running once its started HOT 5
- Does your test exectuable depend on some dynamic library? What if they do? HOT 2
- advancedExecutables doesnt seem to support symlinked executables HOT 4
- Add `ctest` parsing HOT 2
- gtest binary not find, build with bazel, maybe not support with softlink dir HOT 1
- 'Unexpected error from debug' when debugging googletest test case using 'Native Debug' extension HOT 1
- Allow running tests as a temporary executable HOT 2
- Add access to gdb command to modify arguments HOT 4
- Require build success before allowing a test to run HOT 2
- Status bar name is just "Extension status", and not ex. "TestMate C++". This makes it hard to find it if you want to hide the status. HOT 1
- Documentation does not mention case-sensitivity for file search globs HOT 1
- executionWrapper not working as expected HOT 7
- Filter tests by tags HOT 1
- Simplify finding test executables (remove advancedExecutables) HOT 1
- Improve performance by allowing "Files: exclude" rules when collecting test binaries HOT 11
- Add custom file extension pre-filter HOT 2
- The ambiguous explanation of the test.parallelExecutionLimit and the test.parallelExecutionOfExecutableLimit HOT 5
- Bazel, Runfiles, and C++ TestMate - how to use properly? HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-catch2-test-adapter.