Coder Social home page Coder Social logo

Comments (5)

numaru avatar numaru commented on June 23, 2024 1

The test-explorer.* commands and the buttons are implemented in the test explorer extension (not mine). The interface I implemented to run the tests is run(testIds) and it is called by the single module buttons, the big button or even the commands.

We are going out of the issue scope, feel free to open a new one if you have another question.

from vscode-ceedling-test-adapter.

numaru avatar numaru commented on June 23, 2024

I confirm that the extension never run ceedling test:all. When the big button is pressed, the parent extension give the full list of test to execute to this one. We could detect that the whole test suite is started and then run test:all instead of running them one by one but I think it would also require some change in the parsing of the results. Why would you expect report.xml to be filled with all the test results?

from vscode-ceedling-test-adapter.

teraohmique avatar teraohmique commented on June 23, 2024

I thought the big one was a test:all and the ones in the list were running test:module and thought I would get the results accordingly to that. I had a script passing it into my own result format. Another question, is there a difference between pressing play on the module name vs on the test name? (aka, I can't seem to figure out how to run a singular test). I haven't had time to look deeper into this but wouldn't it be simpler to use the general ceedling commands instead of parsing the test ids?

from vscode-ceedling-test-adapter.

numaru avatar numaru commented on June 23, 2024

This ext is just a layer gluing ceedling to the vscode-test-explorer. It does not directly handle the buttons and stuff. It communicates with the test explorer using an api and with ceedling through files and cli. There are plenty of adapters for the test explorer so the api does not reflect exactly the ceedling interface.

There is no difference between test and module buttons since ceedling does not allow to run a single function as a test. The whole file is always executed.

If your tests are not too long, maybe ceedling could be re-run at the beginning of the script.

from vscode-ceedling-test-adapter.

teraohmique avatar teraohmique commented on June 23, 2024

Would it be possible to have two different args in the settings for the 2 different buttons? One for "test-explorer.run-all" and one for "test-explorer.run-file" ?

from vscode-ceedling-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.