Git Product home page Git Product logo

msporna / lava-test-coverage Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 3.0 27.84 MB

Test coverage tool supporting unity games (c#), android apps (java) and javascript. Gathers coverage on the fly, as software is being tested.

Home Page: https://msporna.github.io/LAVA-test-coverage/

License: MIT License

Python 12.15% Batchfile 0.01% JavaScript 5.45% CSS 0.64% HTML 80.95% C# 0.47% Java 0.33%
test-coverage code-coverage selenium-test-coverage unity-test-coverage selenium unity3d flask android-test-coverage runtime-coverage

lava-test-coverage's People

Contributors

msporna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lava-test-coverage's Issues

Documentation on API usage

I am trying to automate the process through unity test runner command line combined with lava.

i did able to do unity test runner with lava through using coroutine to wait till lava request are sent to server. (which i think isnt ideal for my case tbh.)

for now i just try to automate UI i needed to apply in lava dashboard so i wont need to set things up like, module, and assgined files.

so i ended up looking at server code and find out that most of the stuff are done through api call. but there are still no api documentation for it which troubles me figuring stuff out since i never developed flask before.

i do could try using api call for each stuff but it isnt clear enough

IndexError: list index out of range, cause unknown

Particular scripts in my project are causing the formatting process to throw an error.

I believe it's caused by scripts using these calls:

StartCoroutine(Util.RoutineTimer.WaitForFrames(1, () => {
                            //do logic
		}));

Util.RoutineTimer.WaitForFrames:

public static IEnumerator WaitForFrames(int frames, Action callback)
		{
			for(int i=0; i<frames; i++)
			{
				yield return new WaitForEndOfFrame();
			}
			callback();

		}

Gives me the following error when formatting the file with the above call:

Traceback (most recent call last):
  File "D:\Programs\LAVA-test-coverage-master\client\instrument_client.py", line 922, in <module>
    instrumenter.prepare(json_path)
  File "D:\Programs\LAVA-test-coverage-master\client\instrument_client.py", line 172, in prepare
    self.insert_instrument_function()  # to js or source files
  File "D:\Programs\LAVA-test-coverage-master\client\instrument_client.py", line 601, in insert_instrument_function
    self.insert_instrument_function_into_csharp()
  File "D:\Programs\LAVA-test-coverage-master\client\instrument_client.py", line 642, in insert_instrument_function_into_csharp
    1]
IndexError: list index out of range

It works fine when trying it with folders that don't contain these scripts.

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.