Skip to content

Commit

Permalink
merged with dev
Browse files Browse the repository at this point in the history
  • Loading branch information
BenedictWilkins committed Aug 21, 2022
2 parents fac9cd2 + 060133a commit b17cefe
Show file tree
Hide file tree
Showing 1,755 changed files with 115,027 additions and 21,914 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
branch = True

# there is some weird error 'no source for code .../config-3.py' the file doesnt exist.
# It might be related to opencv? or gyms entry point mechanism...

[report]
ignore_errors = True
include =
worldofbugs/worldofbugs/*
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
logs/
.vscode

# Builds (use build.cs to build the scenes)
builds/
dataset/
test/
tmp/

*.tar.hz
Expand Down Expand Up @@ -152,4 +154,4 @@ dmypy.json
.pytype/

# Cython debug symbols
cython_debug/
cython_debug/
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "com.worldofbugs.worldofbugs/External/NavMeshComponents"]
path = com.worldofbugs.worldofbugs/External/NavMeshComponents
url = https://github.com/Unity-Technologies/NavMeshComponents.git
[submodule "com.worldofbugs.worldofbugs/External/ClassTypeReference-for-Unity"]
path = com.worldofbugs.worldofbugs/External/ClassTypeReference-for-Unity
url = https://github.com/SolidAlloy/ClassTypeReference-for-Unity.git
4 changes: 4 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[settings]
multi_line_output=3
include_trailing_comma=True
line_length=88
62 changes: 62 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
exclude : '.*(\.(asset|meta|mat|unity|prefab))'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
files : .*(\.py|\.cs)
#exclude : '(isort\.cfg|*.(\.svg))' # some weird conflict that is never resolved...
- id: trailing-whitespace

# python tests / linting etc
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)

- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: black
language_version: python3.8
types: [python]
stages: [commit]

- repo: local
hooks:
- id: lint # python linting
name: lint
entry: python worldofbugs/worldofbugs/test/lint.py
language: system
pass_filenames: false
log_file: logs/lint.log


# TODO it would be nice to have a report here...
- id : unit-test
name : unit-test
entry : coverage run -m unittest discover -s worldofbugs/worldofbugs/test/unit -v
language: system
pass_filenames: false
log_file : logs/unit-test.log


# c-sharp code formatting
- id: astyle
name: astyle
entry: bash worldofbugs/worldofbugs/test/scripts/astyle.sh
language: system
pass_filenames: false
log_file: logs/astyle.log

# run
- id : unity-runtime-test
name : unity-runtime-test
entry : python worldofbugs/worldofbugs/test/unity-test.py
language : system
pass_filenames : false
log_file: logs/unity-test.log
6 changes: 6 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[MASTER]
disable=
C0301, # missing-module-docstring
C0415, # import-outside-toplevel
R0903, # too-few-public-methods
good-names-rgxs=^[_a-z][_a-z0-9]?$
13 changes: 11 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"python.linting.enabled": true
}
"python.linting.enabled": true,
"ltex.language": "en-GB",
"ltex.dictionary": {
"en-GB": [
"WOB",
"ML-Agents",
"recognised",
"completionist",
]
}
}
25 changes: 8 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://pre-commit.com/)
[![Pylint](docs/_badge/pylint.svg)](https://github.com/PyCQA/pylint)
[![Code style: astyle](docs/_badge/astyle.svg)](http://astyle.sourceforge.net)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

# WorldOfBugs

World of Bugs is a test plaform for Automated Bug Detection (ABD) research.
World of Bugs is a test platform for Automated Bug Detection (ABD) research.

## READER NOTE:

Expand All @@ -21,21 +27,6 @@ Datasets have been created using our test environment (World-v1), a pre-built ve

Experiments on the initial version of the test environment (World-v1) can be found in [this](https://github.com/BenedictWilkins/world-of-bugs-experiments) repository.



### Paper

[Learning to Identify Perceptual Bugs in 3D Video Games](https://arxiv.org/abs/2202.12884)
Submitted to [COG 2022](https://ieee-cog.org/2022/) awaiting peer-review.

Citation:
```
@article{Wilkins2022,
title = {Learning to Identify Perceptual Bugs in 3D Video Games},
url = {http://arxiv.org/abs/2202.12884},
journaltitle = {{arXiv}:2202.12884 [cs]},
author = {Wilkins, Benedict and Stathis, Kostas},
}
```


LINKS COMING SOON
5 changes: 5 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* add tests to com.worldofbugs.worldofbugs, there should be a specific means to test new kinds of bugs?
* test all sample environments and build them
* create c# code reference documentation
* create first release
* add to Unity open package registry
56 changes: 0 additions & 56 deletions UnityProject/.vscode/settings.json

This file was deleted.

19 changes: 0 additions & 19 deletions UnityProject/Assets/Assets.index

This file was deleted.

10 changes: 0 additions & 10 deletions UnityProject/Assets/Assets.index.meta

This file was deleted.

8 changes: 0 additions & 8 deletions UnityProject/Assets/Captures.meta

This file was deleted.

8 changes: 0 additions & 8 deletions UnityProject/Assets/Captures/display1.meta

This file was deleted.

Binary file removed UnityProject/Assets/Captures/display1/screen(0).png
Binary file not shown.
92 changes: 0 additions & 92 deletions UnityProject/Assets/Captures/display1/screen(0).png.meta

This file was deleted.

8 changes: 0 additions & 8 deletions UnityProject/Assets/Captures/display2.meta

This file was deleted.

Binary file not shown.
Loading

0 comments on commit b17cefe

Please sign in to comment.