Giter Site home page Giter Site logo

Describe testing approach about fortpy HOT 2 OPEN

rosenbrockc avatar rosenbrockc commented on August 29, 2024
Describe testing approach

from fortpy.

Comments (2)

rosenbrockc avatar rosenbrockc commented on August 29, 2024

Thank-you for being willing to track the error down. I previously had all the testing folders in .gitignore while I was fleshing things out, I added them to the repo now. If you look in tests/isense/original, there are three Fortran files that I have been using for the unit testing of isense. I abbreviate them with the keys "monte", "deriv" and "cefit" in the isense.py module that actually performs the tests. In the isense module, there is a method called get_completion_tests that lists the kind of isense test to perform (essentially any of the callable attributes on the fortpy.isense.__init__.Script class) as well as the line number and char index of the cursor location in the relevant code file.

Let me know if you have questions. There is a debug module, but I wasn't consistent with inserting the debug assertions etc. throughout the code, so it is close to useless at this point. I have an issue open to go through the code and add some strategic debug references but I haven't got around to it yet. Also the full definition lookup (M-?) hasn't really been tested well. I have only a single test case in the unit tests for that one because most of the people using fortpy so far haven't been clamoring for it (you are the first). If you want to try and figure out the problem, I would appreciate it.

I pushed some changes a few minutes ago that you should probably pull before you start debugging. Thanks!

from fortpy.

rosenbrockc avatar rosenbrockc commented on August 29, 2024

Also (you probably will see this from the code anyway, but...) the results of the isense completions etc. are written to files in the tests/isense directory and have names like compl_*.tmp where the * is the key of the code file that was being tested. If you compare the cursor position in the code file with the output saved in the compl_*.tmp files, it should become obvious how to use the unit tester.

from fortpy.

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.