← Back to Blog

Not so easy to test a function

Not so easy to test a function Pipeline was not so easy and use friendly could not fully trigger the test and it is too slow Day 3 use the development enviroment https://developer.microsoft.com/en-us/windows/downloads/virtual-machines Stuck here of practical testing https://dev.a

Not so easy to test a function

Pipeline was not so easy and use friendly

could not fully trigger the test and it is too slow

Day 3 use the development enviroment

not so easy 1

https://developer.microsoft.com/en-us/windows/downloads/virtual-machines

not so easy 2

Stuck here of practical testing

https://dev.azure.com/pexabo/contractormarketing/_git/contractormarketing-helperfunctions/commit/411c3c1069203563e9bf1c6de8f9ea8e745e1e91?refName=refs%2Fheads%2Fmain

Local machine has other issues

not so easy 3

not so easy 4

not so easy 5

not so easy 6

not so easy 7

250k handle system over loaded cant take a screenshot

not so easy 8

cpu > stuck with ovf tool and performance monitor by iobit / loupe deck

the screenshot tool failed thanks to light shot

not so easy 9

not so easy 10

uncheck and reboot

not so easy 11

extra tools install on a big workstation not so serverless anymore when i am trying to test in a practical manner

not so easy 12

Maybe this it the alternative with python

not so easy 13

use the test enviroment from cloud9

https://www.pluralsight.com/labs/aws/program-the-cloud-using-aws-cloud9-ide?utm_source=google&utm_medium=paid-search&utm_campaign=upskilling-and-reskilling&utm_term=ssi-emea-uk-dynamic&utm_content=free-trial&gad_source=1&gclid=CjwKCAiA6KWvBhAREiwAFPZM7tAjDecY0ybtiAngzQHIgz4yCtKZwTi9RDSZNt6a_D5GtPxIKK2JiRoCp3QQAvD_BwE

vmware tools

not so easy 14

ms dev environment

not so easy 15

not so easy 16

Archilies heel is the compilation ?

not so easy 17

ms trying to take you in

not so easy 18

Azure DevOps Build in Integration ( People needs to go home )

not so easy 19

not so easy 20

ms working hard but needs a workstation and a workstaion>>>> to many layers

not so easy 21

not so easy 22

not so easy 23

compiled languages harder to run !

not so easy 24

virtual machine system build into the pyhton programming so no need

not so easy 25

.net compiled and interpreted

not so easy 26

not so easy 27

not so easy 28

Stong cloud support

not so easy 29

dot net to be opened from the solution and build to make it ready

not so easy 30

Build in python should be much more straight forward?

not so easy 31

Let watch and build at the same time

not so easy 32

unit test is not easy to find and run

not so easy 33

maybe upgrade >>> still that can break the azure devops

not so easy 34

There are ready tools?

not so easy 35

Microsoft has the publish ready to test on the web maybe

not so easy 36

One click publish is there

not so easy 37

not so easy 38

PUBLISH IS there

not so easy 39

Selected no and it failed

not so easy 40

not so easy 41

Target error

not so easy 42

my main magic is here

not so easy 43

The logic app was so slow needed a programming language and a cloud debugger

not so easy 44

Console is there

not so easy 45

Csharp is there as well maybe the workstation i have is the issue

not so easy 46

not so easy 47

hmmm there is a reason people dont wanna manage the ops

not so easy 48

Payments in action

not so easy 49

20 dollars a month

not so easy 50

120 a year mini machine and the enviroment cost

not so easy 51

Get feedback

not so easy 52

add code

public static string processText(string htmlToText,List<string> mykeyvalue) { foreach (var key in mykeyvalue) { if (htmlToText.Contains(key)) { result.Add(key); } } return string.Join(", ", result); }

14 sn here is the error nice

not so easy 53

not so easy 54

not bad

not so easy 55

16 sec not bad

not so easy 56

not many using it

not so easy 57

Basic use cases with libraries ok

with updates and lower than 30 sec ok

not so easy 58

formatting and identation ok

Package and on top library is ok

not so easy 59

Dependencies ok

not so easy 60

Forcing its hand

not so easy 61

no build but there is run that is ok

not so easy 62

Errors

not so easy 63

take the libraries from the action for the csproj

not so easy 64

Clean the browser ( ok )

not so easy 65

In take works now it shows the namespaces

not so easy 66

Easy retrigger and add the libraries to intercept

Nuget error

not so easy 67

Practical helpers are ok

not so easy 68

Resolved packages coming in

not so easy 69

older version is not there

not so easy 70

That exe is our issue

not so easy 71

removed the version no file versions

maybe remove the tester >>> and use the top as the tester >>< adaopt a bit

not so easy 72

remove the funtions just test csharp and move it to the functions in azure

not so easy 73

Cleaned up

not so easy 74

Packages.lock auto fixed ( ok )

not so easy 75

some errors on multi classes

Limited action is there so that is ok at least it runs

not so easy 76

There is also a boot time

not so easy 77

Tools might help me and justify the 20 pouind cost?

not so easy 78

ai could be worthy

not so easy 79

some deploy function is there

not so easy 80

Repl is booting >>> how much did i use it?

not so easy 81

Cycles are getting sold

not so easy 82

not so easy 83

not so easy 84

Usage

not so easy 85

Cost

not so easy 86

iSSUES

not so easy 87

https://ask.replit.com/t/stuck-on-booting-repl/38735/21

not so easy 88

IDE frozen maybe the vcloud9 is the way to go

not so easy 89

https://aws.amazon.com/pm/cloud9/?gclid=CjwKCAiA6KWvBhAREiwAFPZM7k5f4TfmwjMxnpu1iOmlu571I8g_LP_wxXGIQrhatW-Y3kd0mBIXFhoCsTsQAvD_BwE&trk=2fff4d3b-4db9-4722-81cb-22b70ca3a660&sc_channel=ps&ef_id=CjwKCAiA6KWvBhAREiwAFPZM7k5f4TfmwjMxnpu1iOmlu571I8g_LP_wxXGIQrhatW-Y3kd0mBIXFhoCsTsQAvD_BwE:G:s&s_kwcid=AL!4422!3!651612449957!e!!g!!cloud9!19835791169!155574317268

I am back

not so easy 90

replit still working on it >?

MAchine in the back

not so easy 91

Timeout ready

not so easy 92

not so easy 93

Errors for devops

not so easy 94

Linux cloud9

not so easy 95

not so easy 96

run not working

not so easy 97

Csharp is out

not so easy 98

repl is the key

not so easy 99

Cant find the template python

not so easy 100

replit could be on to something they can have down time as long as they are transparent that is ok#

not so easy 101

not so easy 102

language has to change due to library and the c sharp is not cloud ready

and the library ready >>> devops mor on the python part

not so easy 103

now found the header

not so easy 104

Faster close and run ready >>> run button is there >>>> the csharp one needs compiler and finding the dependencies...

not so easy 105

Use notion and wait for replit >>> use cloud 9 as backup

not so easy 106

python short lol

not so easy 107

notion as a by pass location

not so easy 108

Code backup and delete c9

`"""
Your module description
"""
print("started")

def process_text(html_to_text, my_key_value):
result = [key for key in my_key_value if key in html_to_text]
return ", ".join(result)

def test_process_text():

Arrange

html_to_text = "Dear candidate, we are looking for a talented software engineer with experience in C#, .NET, and SQL. Please respond if you are interested."
my_key_value = ["software engineer", "C#", ".NET", "SQL"]

Act

result = process_text(html_to_text, my_key_value)

Assert

assert result == "software engineer, C#, .NET, SQL"

print("ended")`

not so easy 109

turned on > 2 hour down time

not so easy 110

enviroment trigger without cloud9

not so easy 111

the indentation is the key in pyjton to have less syntax

not so easy 112

python and yaml so close to each other

not so easy 113

Testinf the f sharp

not so easy 114

call the method

not so easy 115

Assert there is an error

not so easy 116

it is failing at assert

not so easy 117

not so easy 118

it works

not so easy 119

not so easy 120

not so easy 121

Bigger list also works

not so easy 122

https:&#047;&#047;replit.com/@info1146/Python#main.py
                

https://replit.com/@info1146/Python#main.py


Imported from rifaterdemsahin.com · 2024