Code Monkey home page Code Monkey logo

Comments (5)

jimmymcp avatar jimmymcp commented on August 18, 2024

Hi Natalie,

Were some tests actually run?

The results from that test run are copied to a unique file (named with a guid as per your log) but then split into separate xml files for each test codeunit under the Results folder. The .xml file is then deleted.

The only reason I can think of for not storing the results is that there weren't any results to store. Did you publish your app before running the tests?

from al-test-runner.

NKarolak avatar NKarolak commented on August 18, 2024

Apologies, I have to blame myself. There are two conflicting parties :)

My test app is coded in a way that whenever you install it (hence on each publish), a specific Test Suite is deleted, created and filled with all my own test functions. No need to "Get Test Codeunits" manually.

The AL Test Runner tries to run the test in the very same Test Suite like my test app initialization process = conflict. My app deletes your results right away.
When I comment out my Test Suite initialization process, your app works as intended.

The actual solution would be to let the AL Test Runner use another Test Suite. Could you provide an optional setting for choosing a specific Test Suite name?

from al-test-runner.

jimmymcp avatar jimmymcp commented on August 18, 2024

Yes, you can open the config.json and supply the test suite name.

Although, there shouldn't be any need for install code to populate a test suite (if you are using BC15 or later)? If you use the AL Test Tool page and paste your extension ID the tests will be discovered from your extension (that's how the PowerShell runner finds and executes the tests).

from al-test-runner.

NKarolak avatar NKarolak commented on August 18, 2024

Uh, the config.json :-) I should have found that myself.

I am using BC 16.
What do you mean with "pasting my extension ID" when using the AL Test Tool page? Where and when to paste?

from al-test-runner.

jimmymcp avatar jimmymcp commented on August 18, 2024

Sorry, I meant "Command Line Test Tool" not "AL Test Tool". There is a field on that page you can paste your extension id from app.json into.

image

from al-test-runner.

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.