Class tester

LucaMs

Expert
Licensed User
Longtime User
AIs are MONSTROUS (I don't list the tests I've run; Copilot recognizes everything you pass it).

One of the most useful things, among many, in my opinion is to have it create a B4XMainPage that tests one of your classes (which will later become your library).

Writing a complete tester project is a very complicated task!
 

aeric

Expert
Licensed User
Longtime User
You can try my project template.

Even you are not planning to create a b4xlib.

It doesn't need to be complicated.

AI is not required.

 

LucaMs

Expert
Licensed User
Longtime User
I probably explained it poorly.
I meant that testing a class (and even more so an entire project, obviously) is difficult. It's very useful to have an AI generate a "test project" (I specified a test B4XMainPage).
 

aeric

Expert
Licensed User
Longtime User
What do you mean by test project, test class and test B4XMainPage?
 

aeric

Expert
Licensed User
Longtime User

I just need to replace MyLibrary.bas with the class I want to test.
eg. MiniORM

The template also includes B4XMainPage for tests.

Most of my GitHub repos have the complete test projects for debugging my libraries.

They are not only contains the final release source code.

Some also include Macros to pack the libraries.

I think nobody have seens those repos. 🥹
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…