Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EPIC] Commands enhancements #115

Merged
merged 51 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
06647ed
Validate environment commonfunction & better error handling
fdodino Nov 5, 2023
c2507bb
Linter fixes
fdodino Nov 5, 2023
aa6f90f
Common function, error handling & unit tests for repl/test
fdodino Nov 5, 2023
a52f71c
back to red
fdodino Nov 5, 2023
5f0419a
Add test coverage
fdodino Nov 7, 2023
78e9476
Add test case
fdodino Nov 7, 2023
355a0c6
added noDiagram option #114
fdodino Nov 7, 2023
b8009c7
Add newoption noDiagram
fdodino Nov 7, 2023
db29053
Add test for utils & removing console infos
fdodino Nov 7, 2023
bf827bc
Validate environment commonfunction & better error handling
fdodino Nov 5, 2023
f851f6c
Linter fixes
fdodino Nov 5, 2023
558eb8c
Common function, error handling & unit tests for repl/test
fdodino Nov 5, 2023
edbcaa8
back to red
fdodino Nov 5, 2023
47feec8
Add test coverage
fdodino Nov 7, 2023
4d31005
Add test case
fdodino Nov 7, 2023
9e092f6
added noDiagram option #114
fdodino Nov 7, 2023
deecc33
Add newoption noDiagram
fdodino Nov 7, 2023
e7fd119
Add test for utils & removing console infos
fdodino Nov 7, 2023
9a57cf8
Logging diagram port on init
PalumboN Nov 7, 2023
279e578
Missing assertion + linter
PalumboN Nov 7, 2023
48a4b96
add util tests for printing & resources
fdodino Nov 8, 2023
e3a5a8d
Merge branch 'commands-enhancements' of github.com:uqbar-project/woll…
fdodino Nov 8, 2023
b9b1ea2
add last test for utils
fdodino Nov 8, 2023
a7e04cb
REPL refactored & fixed :d option
fdodino Nov 10, 2023
0c7d0ba
Add tests for diagram client
fdodino Nov 11, 2023
1867a92
Test: will fix CI although it breaks executable
fdodino Nov 11, 2023
92f9527
Fix packaging & development for diagram client
fdodino Nov 11, 2023
7952040
add new test
fdodino Nov 11, 2023
b98e52d
add test for global repl function
fdodino Nov 12, 2023
3b075b4
adding tests for repl - border & happy path
fdodino Nov 12, 2023
7c62e4f
add test for non-existent file
fdodino Nov 12, 2023
92544e7
Mocha 7 seconds timeout
fdodino Nov 12, 2023
8d324cd
add test for missing file without validation
fdodino Nov 12, 2023
57e2f5a
add test for REPL with missing file an validation
fdodino Nov 12, 2023
72f4270
Fix #20 Reload & rerun
fdodino Nov 13, 2023
30345aa
Add test to the command line
fdodino Nov 13, 2023
4e35c69
Reload deletes the command history
fdodino Nov 13, 2023
6af2656
Warning for future use
fdodino Nov 13, 2023
db6a1c5
Fix #57 & #107, adding options: name, game, noCI, noTest & new files …
fdodino Nov 13, 2023
a27ddc2
Avoid warning in wlk definition
fdodino Nov 14, 2023
1baae57
add tests for init command
fdodino Nov 17, 2023
b847c27
add test for resource folder on default project
fdodino Nov 17, 2023
011bfff
Validating init generates a valid test example
fdodino Nov 18, 2023
b1c5f15
add README file for init
fdodino Nov 19, 2023
200be67
Logging README creation
fdodino Nov 19, 2023
b7a66b6
renaming -> commands history
fdodino Nov 20, 2023
67a72db
fqn param destructured
fdodino Nov 20, 2023
9122404
message changed PR review
fdodino Nov 20, 2023
7cf4c66
renaming noDiagram -> skipDiagram
fdodino Nov 20, 2023
29d1eb1
fix test
fdodino Nov 20, 2023
d49aa05
removing duplicate method
fdodino Nov 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
object pepita {
var energia = 0
var extra = 0

// method without parentheses does not parse ok
method energiaTotal = energia + extra
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class A {
method go() {
self = 1
}
}
14 changes: 14 additions & 0 deletions examples/init-examples/existing-folder/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: build

on: [push, pull_request]
jobs:
wollok-ts:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: |
wget -O wollok-ts-cli https://github.com/uqbar-project/wollok-ts-cli/releases/latest/download/wollok-ts-cli-linux-x64
chmod a+x ./wollok-ts-cli
./wollok-ts-cli test --skipValidations -p ./
shell: bash
6 changes: 6 additions & 0 deletions examples/init-examples/existing-folder/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


## example

TODO

9 changes: 9 additions & 0 deletions examples/init-examples/existing-folder/example.wlk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
object pepita {
var energy = 100

method energy() = energy

method fly(minutes) {
energy = energy - minutes * 3
}
}
8 changes: 8 additions & 0 deletions examples/init-examples/existing-folder/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "existing-folder",
"version": "1.0.0",

"wollokVersion": "4.0.0",
"author": "dodain",
"license": "ISC"
}
9 changes: 9 additions & 0 deletions examples/init-examples/existing-folder/testExample.wtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import example.pepita

describe "group of tests for pepita" {

test "pepita has initial energy" {
assert.equals(100, pepita.energy())
}

}
7 changes: 7 additions & 0 deletions examples/package-examples/bad-project/example.wlk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
object pepita {
var energia = 100

method fly() {
energia = energia - 10
}
}
7 changes: 7 additions & 0 deletions examples/package-examples/good-project/example.wlk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
object pepita {
var energia = 100

method fly() {
energia = energia - 10
}
}
7 changes: 7 additions & 0 deletions examples/package-examples/good-project/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "parcialBiblioteca",
"version": "1.0.0",
"wollokVersion": "4.0.0",
"author": "juan",
"license": "ISC"
}
7 changes: 7 additions & 0 deletions examples/problems-examples/example.wlk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class bird {
const energy = 1

method fly() {
energy = 2
}
}
7 changes: 7 additions & 0 deletions examples/test-examples/failing-case/test-fail.wtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
describe "this describe" {

test "a test" {
const pepita =
}

}
12 changes: 12 additions & 0 deletions examples/test-examples/normal-case/test-one.wtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
describe "this describe" {

test "a test" {
assert.equals(2, 2)
}

test "another test" {
const a = 2
assert.equals(2, a)
}

}
20 changes: 20 additions & 0 deletions examples/test-examples/normal-case/test-two.wtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
describe "second describe" {

test "second test" {
assert.that(true)
}

test "another second test" {
assert.equals(3, 3)
}

}

describe "third describe" {

test "just a test" {
const a = 1
assert.equals(a + 1, 1)
}

}
15 changes: 15 additions & 0 deletions examples/test-examples/only-case/only-file.wtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
describe "only describe" {

test "some test" {
assert.that(true)
}

only test "this is the one" {
assert.equals(1, 1)
}

test "last test" {
assert.that(0, [].size())
}

}
20 changes: 20 additions & 0 deletions examples/test-examples/only-case/test-two.wtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
describe "second describe" {

test "second test" {
assert.that(true)
}

test "another second test" {
assert.equals(3, 3)
}

}

describe "third describe" {

test "just a test" {
const a = 1
assert.equals(a + 1, 2)
}

}
Loading