Jump to content

Search the Community

Showing results for tags 'tests'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feedback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Add-on Store (https://store.unigine.com/)
    • Showcase
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 2 results

  1. Thoughts on Testing

    Hello Folks, I would be interested in experiences with testing and Unigine, especially for larger projects. What kind of toolchain do you use for continuous integration and how do you unit test? Interacting with the Unigine API often needs Unigine to be initialized which makes tests tedious. Do you use some kind of mocking? Do you test your rendered output? How do you compare test results and expected outputs? I would guess pixelwise comparison can be achieved seldomly. I'm new to both testing in C++ and Unigine and would appreciate any input on this topic. Kind regards
  2. Use of the Expression class

    Hi, I'm trying to use the Expression class but it seems the examples given in the documentation are off. For example this does not compile ("can't find "run" function with 4 arguments in class Expression"): Expression e1 = new Expression(" { int a,b,c,d; return a + b + c + d; } ","a,b,c,d"); if(e1.isCompiled()) { log.message("%s\n",typeinfo(e1.run(1,2,3,4))); } To give you some context, I'm trying to use this to run unit tests on our project. The Expression class seemed to be a good way of doing it since it's supposed to allow expressions written in strings to be processed at run time. This way we could easily display which test went wrong. It works for simple tests using static methods but I wish I could run the expressions with arguments. If it's not possible, do you know any better way to evaluate and display a boolean expression ? Thanks !
×
×
  • Create New...