Giter VIP home page Giter VIP logo

Comments (5)

matepek avatar matepek commented on May 27, 2024

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.

matepek avatar matepek commented on May 27, 2024

I release something which hopefully fixes this. (version2.3.16)
Thanks again for the issue

from vscode-catch2-test-adapter.

kondratyev-nv avatar kondratyev-nv commented on May 27, 2024

@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.

matepek avatar matepek commented on May 27, 2024

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.

matepek avatar matepek commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.